package com.micro.frog.core.common;


import java.io.Serializable;

/** 分页出入参
 * @author :  ljh
 * @date : 2018/4/4
 **/
public class PageVO implements Serializable {

    /**
     * 当前页码
     */
    private int pageNum;
    /**
     * 每页行数
     */
    private int pageSize;
    /**
     * 此次查询的条件
     */
    private Object condition;

    public void init(){
        if (this.pageNum == 0 && this.pageSize == 0){
            this.pageNum = 1;
            this.pageSize = 10;
        }
    }

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public Object getCondition() {
        return condition;
    }

    public void setCondition(Object condition) {
        this.condition = condition;
    }
}
